package com.xiaobai.aroundtest.service.impl;

import com.xiaobai.aroundtest.annotation.AroundTest;
import com.xiaobai.aroundtest.entity.Article;
import com.xiaobai.aroundtest.service.IAroundTestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author wangtw
 * @date 2023/12/6 0:42
 * @description
 */
@Slf4j
@Service
public class AroundTestServiceImpl implements IAroundTestService {

    @AroundTest // 自定义注解
    @Override
    public void aroundTest(String name, Article article) {
        log.info("保存文章");
    }
}
